package cn.tedu.demo05wangaoshong.work;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class DemoTest1 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext acac =
                new AnnotationConfigApplicationContext(ConfigWork.class);

        Worker worker = acac.getBean("worker",Worker.class);
        System.out.println(worker);
    }
}
